home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-11-22 | 1.6 KB | [TEXT/MMCC] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Tue Nov 22 00:43:44 1994, modified Tue Nov 22 00:43:44 1994, creator 'MMCC', type ASCII, 890 bytes "CenterRectInRect.c" , at 0x3fa 516 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MMCC] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 12 43 65 6e 74 65 72 | 52 65 63 74 49 6e 52 65 |..Center|RectInRe|
|00000010| 63 74 2e 63 00 00 00 00 | 00 00 00 00 00 00 00 00 |ct.c....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 03 7a 00 | 00 02 04 aa f7 35 90 aa |......z.|.....5..|
|00000060| f7 35 90 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.5......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7a 9f 00 00 |........|....z...|
|00000080| 2f 2a 0d 43 65 6e 74 65 | 72 52 65 63 74 49 6e 52 |/*.Cente|rRectInR|
|00000090| 65 63 74 2e 63 0d a9 31 | 39 39 31 2d 31 39 39 34 |ect.c..1|991-1994|
|000000a0| 20 44 65 6e 69 73 20 47 | 2e 20 50 65 6c 6c 69 0d | Denis G|. Pelli.|
|000000b0| 54 68 65 73 65 20 72 6f | 75 74 69 6e 65 73 20 61 |These ro|utines a|
|000000c0| 72 65 20 74 72 69 76 69 | 61 6c 2c 20 62 75 74 20 |re trivi|al, but |
|000000d0| 65 6e 68 61 6e 63 65 20 | 74 68 65 20 72 65 61 64 |enhance |the read|
|000000e0| 61 62 69 6c 69 74 79 20 | 6f 66 20 70 72 6f 67 72 |ability |of progr|
|000000f0| 61 6d 73 20 74 68 61 74 | 20 75 73 65 20 74 68 65 |ams that| use the|
|00000100| 6d 2e 0d 0d 48 49 53 54 | 4f 52 59 3a 0d 38 2f 32 |m...HIST|ORY:.8/2|
|00000110| 34 2f 39 31 09 64 67 70 | 09 4d 61 64 65 20 63 6f |4/91.dgp|.Made co|
|00000120| 6d 70 61 74 69 62 6c 65 | 20 77 69 74 68 20 54 48 |mpatible| with TH|
|00000130| 49 4e 4b 20 43 20 35 2e | 30 2e 0d 31 2f 32 35 2f |INK C 5.|0..1/25/|
|00000140| 39 33 20 64 67 70 20 72 | 65 6d 6f 76 65 64 20 6f |93 dgp r|emoved o|
|00000150| 62 73 6f 6c 65 74 65 20 | 73 75 70 70 6f 72 74 20 |bsolete |support |
|00000160| 66 6f 72 20 54 48 49 4e | 4b 20 43 20 34 2e 0d 31 |for THIN|K C 4..1|
|00000170| 31 2f 32 32 2f 39 34 20 | 64 67 70 20 72 65 6e 61 |1/22/94 |dgp rena|
|00000180| 6d 65 64 20 22 52 65 63 | 74 49 6e 52 65 63 74 22 |med "Rec|tInRect"|
|00000190| 20 74 6f 20 49 73 52 65 | 63 74 49 6e 52 65 63 74 | to IsRe|ctInRect|
|000001a0| 28 29 2e 0d 2a 2f 0d 23 | 69 6e 63 6c 75 64 65 20 |()..*/.#|include |
|000001b0| 22 56 69 64 65 6f 54 6f | 6f 6c 62 6f 78 2e 68 22 |"VideoTo|olbox.h"|
|000001c0| 0d 0d 76 6f 69 64 20 43 | 65 6e 74 65 72 52 65 63 |..void C|enterRec|
|000001d0| 74 49 6e 52 65 63 74 28 | 52 65 63 74 20 2a 61 2c |tInRect(|Rect *a,|
|000001e0| 52 65 63 74 20 2a 62 29 | 0d 7b 0d 09 4f 66 66 73 |Rect *b)|.{..Offs|
|000001f0| 65 74 52 65 63 74 28 61 | 2c 28 62 2d 3e 6c 65 66 |etRect(a|,(b->lef|
|00000200| 74 20 2b 20 62 2d 3e 72 | 69 67 68 74 20 2d 20 61 |t + b->r|ight - a|
|00000210| 2d 3e 6c 65 66 74 20 2d | 20 61 2d 3e 72 69 67 68 |->left -| a->righ|
|00000220| 74 29 2f 32 0d 09 09 2c | 28 62 2d 3e 74 6f 70 20 |t)/2...,|(b->top |
|00000230| 2b 20 62 2d 3e 62 6f 74 | 74 6f 6d 20 2d 20 61 2d |+ b->bot|tom - a-|
|00000240| 3e 74 6f 70 20 2d 20 61 | 2d 3e 62 6f 74 74 6f 6d |>top - a|->bottom|
|00000250| 29 2f 32 29 3b 0d 7d 0d | 0d 76 6f 69 64 20 4f 66 |)/2);.}.|.void Of|
|00000260| 66 73 65 74 52 65 63 74 | 54 69 6c 65 28 52 65 63 |fsetRect|Tile(Rec|
|00000270| 74 20 2a 72 2c 69 6e 74 | 20 6e 78 2c 69 6e 74 20 |t *r,int| nx,int |
|00000280| 6e 79 29 20 2f 2a 20 73 | 68 69 66 74 20 72 65 63 |ny) /* s|hift rec|
|00000290| 74 20 62 79 20 6d 75 6c | 74 69 70 6c 65 73 20 6f |t by mul|tiples o|
|000002a0| 66 20 74 68 65 20 72 65 | 63 74 20 2a 2f 0d 2f 2f |f the re|ct */.//|
|000002b0| 20 53 68 69 66 74 20 72 | 65 63 74 20 62 79 20 6d | Shift r|ect by m|
|000002c0| 75 6c 74 69 70 6c 65 73 | 20 6f 66 20 74 68 65 20 |ultiples| of the |
|000002d0| 72 65 63 74 0d 7b 0d 09 | 4f 66 66 73 65 74 52 65 |rect.{..|OffsetRe|
|000002e0| 63 74 28 72 2c 6e 78 2a | 28 72 2d 3e 72 69 67 68 |ct(r,nx*|(r->righ|
|000002f0| 74 2d 72 2d 3e 6c 65 66 | 74 29 2c 6e 79 2a 28 72 |t-r->lef|t),ny*(r|
|00000300| 2d 3e 62 6f 74 74 6f 6d | 2d 72 2d 3e 74 6f 70 29 |->bottom|-r->top)|
|00000310| 29 3b 0d 7d 0d 0d 42 6f | 6f 6c 65 61 6e 20 49 73 |);.}..Bo|olean Is|
|00000320| 52 65 63 74 49 6e 52 65 | 63 74 28 52 65 63 74 20 |RectInRe|ct(Rect |
|00000330| 2a 72 2c 52 65 63 74 20 | 2a 52 29 0d 2f 2f 20 49 |*r,Rect |*R).// I|
|00000340| 73 20 74 68 65 20 66 69 | 72 73 74 20 72 65 63 74 |s the fi|rst rect|
|00000350| 20 65 6e 74 69 72 65 6c | 79 20 69 6e 73 69 64 65 | entirel|y inside|
|00000360| 20 74 68 65 20 73 65 63 | 6f 6e 64 3f 0d 2f 2f 20 | the sec|ond?.// |
|00000370| 49 66 20 65 69 74 68 65 | 72 20 72 65 63 74 20 68 |If eithe|r rect h|
|00000380| 61 73 20 7a 65 72 6f 20 | 61 72 65 61 20 74 68 65 |as zero |area the|
|00000390| 6e 20 74 68 69 73 20 72 | 6f 75 74 69 6e 65 20 77 |n this r|outine w|
|000003a0| 69 6c 6c 20 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |ill retu|rn false|
|000003b0| 2e 0d 7b 0d 09 52 65 63 | 74 20 74 3b 0d 09 0d 09 |..{..Rec|t t;....|
|000003c0| 69 66 28 21 53 65 63 74 | 52 65 63 74 28 72 2c 52 |if(!Sect|Rect(r,R|
|000003d0| 2c 26 74 29 29 72 65 74 | 75 72 6e 20 30 3b 0d 09 |,&t))ret|urn 0;..|
|000003e0| 72 65 74 75 72 6e 20 45 | 71 75 61 6c 52 65 63 74 |return E|qualRect|
|000003f0| 28 72 2c 26 74 29 3b 0d | 7d 0d 00 00 00 00 00 00 |(r,&t);.|}.......|
|00000400| 00 00 01 00 00 00 01 ba | 00 00 00 ba 00 00 00 4a |........|.......J|
|00000410| 52 65 63 74 20 2a 52 29 | 0d 2f 2a 20 49 73 20 74 |Rect *R)|./* Is t|
|00000420| 68 65 20 66 69 72 73 74 | 20 72 65 63 74 20 65 6e |he first| rect en|
|00000430| 12 43 65 6e 74 65 72 52 | 65 63 74 49 6e 52 65 63 |.CenterR|ectInRec|
|00000440| 74 2e 63 65 02 00 00 00 | 50 61 72 74 53 49 54 21 |t.ce....|PartSIT!|
|00000450| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 ab bf ee 58 00 00 | 00 00 00 00 02 04 74 69 |.....X..|......ti|
|00000480| 6e 65 20 77 69 6c 6c 20 | 72 65 74 75 72 6e 20 66 |ne will |return f|
|00000490| 61 6c 73 65 2e 20 2a 2f | 0d 7b 0d 09 52 65 63 74 |alse. */|.{..Rect|
|000004a0| 20 74 3b 0d 09 0d 09 69 | 66 28 21 53 65 63 74 52 | t;....i|f(!SectR|
|000004b0| 65 63 74 28 72 2c 52 2c | 26 74 29 29 72 65 74 75 |ect(r,R,|&t))retu|
|000004c0| 72 6e 20 30 3b 0d 09 72 | 65 74 75 72 6e 20 45 71 |rn 0;..r|eturn Eq|
|000004d0| 75 61 6c 52 65 63 74 28 | 72 2c 26 74 29 3b 0d 7d |ualRect(|r,&t);.}|
|000004e0| 0d 73 65 74 62 75 66 28 | 46 49 4c 45 20 2a 2c 20 |.setbuf(|FILE *, |
|000004f0| 63 68 61 72 20 2a 29 3b | 0d 69 6e 74 20 73 65 74 |char *);|.int set|
|00000500| 00 00 00 1e 00 50 00 20 | 01 8d 02 3d 00 50 00 20 |.....P. |...=.P. |
|00000510| 01 8d 02 3d 00 00 00 00 | 00 00 00 00 00 00 00 00 |...=....|........|
|00000520| 00 00 00 00 00 48 00 03 | 00 00 01 47 00 00 01 57 |.....H..|...G...W|
|00000530| 11 43 65 6e 74 65 72 52 | 65 63 74 49 6e 52 65 63 |.CenterR|ectInRec|
|00000540| 74 00 00 00 01 de 00 00 | 01 ec 0f 4f 66 66 73 65 |t.......|...Offse|
|00000550| 74 52 65 63 74 54 69 6c | 65 00 00 00 02 a0 00 00 |tRectTil|e.......|
|00000560| 02 aa 0b 52 65 63 74 49 | 6e 52 65 63 74 00 00 00 |...RectI|nRect...|
|00000570| 00 48 00 09 4d 6f 6e 61 | 63 6f 00 00 00 00 00 00 |.H..Mona|co......|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 06 00 04 | 00 2a 00 03 01 8d 02 7d |........|.*.....}|
|000005a0| 00 4f 00 20 01 8c 02 3d | aa f6 ef 4b 00 00 00 20 |.O. ...=|...K... |
|000005b0| 00 00 00 20 00 00 00 00 | 00 00 00 00 01 00 00 00 |... ....|........|
|000005c0| 01 ba 00 00 00 ba 00 00 | 00 4a 00 8a dc f4 21 ca |........|.J....!.|
|000005d0| 00 00 00 1c 00 4a 00 00 | 4d 50 53 52 00 02 00 0a |.....J..|MPSR....|
|000005e0| 03 f0 ff ff 00 00 00 00 | 00 00 00 00 03 ef ff ff |........|........|
|000005f0| 00 00 00 22 00 00 00 00 | 03 ed ff ff 00 00 00 6e |..."....|.......n|
|00000600| 00 8a d9 bc 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+